package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllStudent(students map[string]interface{}) (error, []models.Student, int64) {
	err, studentData, total := dao.GetAllStudent(students)
	return err, studentData, total
}
func GetNumbers(students map[string]interface{}) (error, []models.Tji, int64) {
	err, numbersData, total := dao.GetNumbers(students)
	return err, numbersData, total
}
func GetNumbera(students map[string]interface{}) (error, []models.Tji, int64) {
	err, numbersData, total := dao.GetNumbera(students)
	return err, numbersData, total
}
func GetNumberp(students map[string]interface{}) (error, []models.Tji, int64) {
	err, numbersData, total := dao.GetNumberp(students)
	return err, numbersData, total
}
func DelStudent(id string) error {
	err := dao.DelStudent(id)
	return err
}

func UpdateStudent(student models.Student) error {
	err := dao.UpdateStudent(student)
	return err
}

func AddStudent(student models.Student) error {
	err := dao.AddStudent(student)
	return err
}
